package com.markerhub.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.markerhub.entity.SysDict;
import com.markerhub.mapper.SysDictMapper;
import com.markerhub.service.SysDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author jsx on 2023/1/15
 **/
@Service
public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> implements SysDictService {

    @Autowired
    private  SysDictMapper sysDictMapper;
    @Override
    public boolean removeByCodes(String[] codes) {
        return sysDictMapper.deleteDictByCodes(codes) > 0;
    }
}
